package com.usian.pojo.staff;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("staff")
public class Staff implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("sex")
    private String sex;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("birth")
    private Date birth;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    @TableField("posteid")
    private Integer posteid;

    @TableField("site")
    private String site;

    @TableField("phone")
    private String phone;

    @TableField("linkman")
    private String linkman;

    @TableField("depid")
    private Integer depid;
}
